﻿namespace SharpSoft.Data
{
    /// <summary>
    /// 原生的SQL语句，各数据库使用各自的语法
    /// </summary>
    public class NativeSQLCommandScript
    {
        public NativeSQLCommandScript(string text)
        {
            CommandText = text;
        }
        public string CommandText { get; set; }

        public static implicit operator string(NativeSQLCommandScript sql)
        {
            return sql.CommandText;
        }
        public static implicit operator NativeSQLCommandScript(string text)
        {
            return new NativeSQLCommandScript(text);
        }
    }
}
